package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.common.core.page.TableDataInfo;
import com.zzyl.nursing.domain.Reservation;
import com.zzyl.nursing.vo.ApointmentVo;
import com.zzyl.nursing.vo.ReservationTimeAndCountVo;

import java.util.List;

/**
 * @Author:zhq
 * @Date: 2025/08/21 21:25
 * @Description:
 */
public interface IReservationService extends IService<Reservation> {
    Integer getCancelledCount();

    List<ReservationTimeAndCountVo> getCountByTime(Long time);

    /**
     * 新增预约
     * @param apointmentVo
     */
    void add(ApointmentVo apointmentVo);

    TableDataInfo<Reservation> getPage(Integer pageNum, Integer pageSize);
}
